package com.local.model;

import java.util.ArrayList;
import java.util.List;

public class EquipmentToMedieExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public EquipmentToMedieExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andUuidIsNull() {
            addCriterion("uuid is null");
            return (Criteria) this;
        }

        public Criteria andUuidIsNotNull() {
            addCriterion("uuid is not null");
            return (Criteria) this;
        }

        public Criteria andUuidEqualTo(String value) {
            addCriterion("uuid =", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotEqualTo(String value) {
            addCriterion("uuid <>", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThan(String value) {
            addCriterion("uuid >", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidGreaterThanOrEqualTo(String value) {
            addCriterion("uuid >=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThan(String value) {
            addCriterion("uuid <", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLessThanOrEqualTo(String value) {
            addCriterion("uuid <=", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidLike(String value) {
            addCriterion("uuid like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotLike(String value) {
            addCriterion("uuid not like", value, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidIn(List<String> values) {
            addCriterion("uuid in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotIn(List<String> values) {
            addCriterion("uuid not in", values, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidBetween(String value1, String value2) {
            addCriterion("uuid between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andUuidNotBetween(String value1, String value2) {
            addCriterion("uuid not between", value1, value2, "uuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidIsNull() {
            addCriterion("equiment_uuid is null");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidIsNotNull() {
            addCriterion("equiment_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidEqualTo(String value) {
            addCriterion("equiment_uuid =", value, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidNotEqualTo(String value) {
            addCriterion("equiment_uuid <>", value, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidGreaterThan(String value) {
            addCriterion("equiment_uuid >", value, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidGreaterThanOrEqualTo(String value) {
            addCriterion("equiment_uuid >=", value, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidLessThan(String value) {
            addCriterion("equiment_uuid <", value, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidLessThanOrEqualTo(String value) {
            addCriterion("equiment_uuid <=", value, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidLike(String value) {
            addCriterion("equiment_uuid like", value, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidNotLike(String value) {
            addCriterion("equiment_uuid not like", value, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidIn(List<String> values) {
            addCriterion("equiment_uuid in", values, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidNotIn(List<String> values) {
            addCriterion("equiment_uuid not in", values, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidBetween(String value1, String value2) {
            addCriterion("equiment_uuid between", value1, value2, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andEquimentUuidNotBetween(String value1, String value2) {
            addCriterion("equiment_uuid not between", value1, value2, "equimentUuid");
            return (Criteria) this;
        }

        public Criteria andViewUrlIsNull() {
            addCriterion("view_url is null");
            return (Criteria) this;
        }

        public Criteria andViewUrlIsNotNull() {
            addCriterion("view_url is not null");
            return (Criteria) this;
        }

        public Criteria andViewUrlEqualTo(String value) {
            addCriterion("view_url =", value, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlNotEqualTo(String value) {
            addCriterion("view_url <>", value, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlGreaterThan(String value) {
            addCriterion("view_url >", value, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlGreaterThanOrEqualTo(String value) {
            addCriterion("view_url >=", value, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlLessThan(String value) {
            addCriterion("view_url <", value, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlLessThanOrEqualTo(String value) {
            addCriterion("view_url <=", value, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlLike(String value) {
            addCriterion("view_url like", value, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlNotLike(String value) {
            addCriterion("view_url not like", value, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlIn(List<String> values) {
            addCriterion("view_url in", values, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlNotIn(List<String> values) {
            addCriterion("view_url not in", values, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlBetween(String value1, String value2) {
            addCriterion("view_url between", value1, value2, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andViewUrlNotBetween(String value1, String value2) {
            addCriterion("view_url not between", value1, value2, "viewUrl");
            return (Criteria) this;
        }

        public Criteria andStreamIsNull() {
            addCriterion("stream_ is null");
            return (Criteria) this;
        }

        public Criteria andStreamIsNotNull() {
            addCriterion("stream_ is not null");
            return (Criteria) this;
        }

        public Criteria andStreamEqualTo(String value) {
            addCriterion("stream_ =", value, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamNotEqualTo(String value) {
            addCriterion("stream_ <>", value, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamGreaterThan(String value) {
            addCriterion("stream_ >", value, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamGreaterThanOrEqualTo(String value) {
            addCriterion("stream_ >=", value, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamLessThan(String value) {
            addCriterion("stream_ <", value, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamLessThanOrEqualTo(String value) {
            addCriterion("stream_ <=", value, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamLike(String value) {
            addCriterion("stream_ like", value, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamNotLike(String value) {
            addCriterion("stream_ not like", value, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamIn(List<String> values) {
            addCriterion("stream_ in", values, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamNotIn(List<String> values) {
            addCriterion("stream_ not in", values, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamBetween(String value1, String value2) {
            addCriterion("stream_ between", value1, value2, "stream");
            return (Criteria) this;
        }

        public Criteria andStreamNotBetween(String value1, String value2) {
            addCriterion("stream_ not between", value1, value2, "stream");
            return (Criteria) this;
        }

        public Criteria andResolutionIsNull() {
            addCriterion("resolution is null");
            return (Criteria) this;
        }

        public Criteria andResolutionIsNotNull() {
            addCriterion("resolution is not null");
            return (Criteria) this;
        }

        public Criteria andResolutionEqualTo(String value) {
            addCriterion("resolution =", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionNotEqualTo(String value) {
            addCriterion("resolution <>", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionGreaterThan(String value) {
            addCriterion("resolution >", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionGreaterThanOrEqualTo(String value) {
            addCriterion("resolution >=", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionLessThan(String value) {
            addCriterion("resolution <", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionLessThanOrEqualTo(String value) {
            addCriterion("resolution <=", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionLike(String value) {
            addCriterion("resolution like", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionNotLike(String value) {
            addCriterion("resolution not like", value, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionIn(List<String> values) {
            addCriterion("resolution in", values, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionNotIn(List<String> values) {
            addCriterion("resolution not in", values, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionBetween(String value1, String value2) {
            addCriterion("resolution between", value1, value2, "resolution");
            return (Criteria) this;
        }

        public Criteria andResolutionNotBetween(String value1, String value2) {
            addCriterion("resolution not between", value1, value2, "resolution");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamIsNull() {
            addCriterion("equipment_view_stream is null");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamIsNotNull() {
            addCriterion("equipment_view_stream is not null");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamEqualTo(String value) {
            addCriterion("equipment_view_stream =", value, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamNotEqualTo(String value) {
            addCriterion("equipment_view_stream <>", value, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamGreaterThan(String value) {
            addCriterion("equipment_view_stream >", value, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamGreaterThanOrEqualTo(String value) {
            addCriterion("equipment_view_stream >=", value, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamLessThan(String value) {
            addCriterion("equipment_view_stream <", value, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamLessThanOrEqualTo(String value) {
            addCriterion("equipment_view_stream <=", value, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamLike(String value) {
            addCriterion("equipment_view_stream like", value, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamNotLike(String value) {
            addCriterion("equipment_view_stream not like", value, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamIn(List<String> values) {
            addCriterion("equipment_view_stream in", values, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamNotIn(List<String> values) {
            addCriterion("equipment_view_stream not in", values, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamBetween(String value1, String value2) {
            addCriterion("equipment_view_stream between", value1, value2, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andEquipmentViewStreamNotBetween(String value1, String value2) {
            addCriterion("equipment_view_stream not between", value1, value2, "equipmentViewStream");
            return (Criteria) this;
        }

        public Criteria andProcessIdIsNull() {
            addCriterion("process_id is null");
            return (Criteria) this;
        }

        public Criteria andProcessIdIsNotNull() {
            addCriterion("process_id is not null");
            return (Criteria) this;
        }

        public Criteria andProcessIdEqualTo(String value) {
            addCriterion("process_id =", value, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdNotEqualTo(String value) {
            addCriterion("process_id <>", value, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdGreaterThan(String value) {
            addCriterion("process_id >", value, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdGreaterThanOrEqualTo(String value) {
            addCriterion("process_id >=", value, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdLessThan(String value) {
            addCriterion("process_id <", value, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdLessThanOrEqualTo(String value) {
            addCriterion("process_id <=", value, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdLike(String value) {
            addCriterion("process_id like", value, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdNotLike(String value) {
            addCriterion("process_id not like", value, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdIn(List<String> values) {
            addCriterion("process_id in", values, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdNotIn(List<String> values) {
            addCriterion("process_id not in", values, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdBetween(String value1, String value2) {
            addCriterion("process_id between", value1, value2, "processId");
            return (Criteria) this;
        }

        public Criteria andProcessIdNotBetween(String value1, String value2) {
            addCriterion("process_id not between", value1, value2, "processId");
            return (Criteria) this;
        }

        public Criteria andRemakerIsNull() {
            addCriterion("remaker_ is null");
            return (Criteria) this;
        }

        public Criteria andRemakerIsNotNull() {
            addCriterion("remaker_ is not null");
            return (Criteria) this;
        }

        public Criteria andRemakerEqualTo(String value) {
            addCriterion("remaker_ =", value, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerNotEqualTo(String value) {
            addCriterion("remaker_ <>", value, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerGreaterThan(String value) {
            addCriterion("remaker_ >", value, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerGreaterThanOrEqualTo(String value) {
            addCriterion("remaker_ >=", value, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerLessThan(String value) {
            addCriterion("remaker_ <", value, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerLessThanOrEqualTo(String value) {
            addCriterion("remaker_ <=", value, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerLike(String value) {
            addCriterion("remaker_ like", value, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerNotLike(String value) {
            addCriterion("remaker_ not like", value, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerIn(List<String> values) {
            addCriterion("remaker_ in", values, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerNotIn(List<String> values) {
            addCriterion("remaker_ not in", values, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerBetween(String value1, String value2) {
            addCriterion("remaker_ between", value1, value2, "remaker");
            return (Criteria) this;
        }

        public Criteria andRemakerNotBetween(String value1, String value2) {
            addCriterion("remaker_ not between", value1, value2, "remaker");
            return (Criteria) this;
        }

        public Criteria andAttr1IsNull() {
            addCriterion("attr1 is null");
            return (Criteria) this;
        }

        public Criteria andAttr1IsNotNull() {
            addCriterion("attr1 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr1EqualTo(String value) {
            addCriterion("attr1 =", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotEqualTo(String value) {
            addCriterion("attr1 <>", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1GreaterThan(String value) {
            addCriterion("attr1 >", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1GreaterThanOrEqualTo(String value) {
            addCriterion("attr1 >=", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1LessThan(String value) {
            addCriterion("attr1 <", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1LessThanOrEqualTo(String value) {
            addCriterion("attr1 <=", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1Like(String value) {
            addCriterion("attr1 like", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotLike(String value) {
            addCriterion("attr1 not like", value, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1In(List<String> values) {
            addCriterion("attr1 in", values, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotIn(List<String> values) {
            addCriterion("attr1 not in", values, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1Between(String value1, String value2) {
            addCriterion("attr1 between", value1, value2, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr1NotBetween(String value1, String value2) {
            addCriterion("attr1 not between", value1, value2, "attr1");
            return (Criteria) this;
        }

        public Criteria andAttr2IsNull() {
            addCriterion("attr2 is null");
            return (Criteria) this;
        }

        public Criteria andAttr2IsNotNull() {
            addCriterion("attr2 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr2EqualTo(String value) {
            addCriterion("attr2 =", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotEqualTo(String value) {
            addCriterion("attr2 <>", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2GreaterThan(String value) {
            addCriterion("attr2 >", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2GreaterThanOrEqualTo(String value) {
            addCriterion("attr2 >=", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2LessThan(String value) {
            addCriterion("attr2 <", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2LessThanOrEqualTo(String value) {
            addCriterion("attr2 <=", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2Like(String value) {
            addCriterion("attr2 like", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotLike(String value) {
            addCriterion("attr2 not like", value, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2In(List<String> values) {
            addCriterion("attr2 in", values, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotIn(List<String> values) {
            addCriterion("attr2 not in", values, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2Between(String value1, String value2) {
            addCriterion("attr2 between", value1, value2, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr2NotBetween(String value1, String value2) {
            addCriterion("attr2 not between", value1, value2, "attr2");
            return (Criteria) this;
        }

        public Criteria andAttr3IsNull() {
            addCriterion("attr3 is null");
            return (Criteria) this;
        }

        public Criteria andAttr3IsNotNull() {
            addCriterion("attr3 is not null");
            return (Criteria) this;
        }

        public Criteria andAttr3EqualTo(String value) {
            addCriterion("attr3 =", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotEqualTo(String value) {
            addCriterion("attr3 <>", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3GreaterThan(String value) {
            addCriterion("attr3 >", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3GreaterThanOrEqualTo(String value) {
            addCriterion("attr3 >=", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3LessThan(String value) {
            addCriterion("attr3 <", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3LessThanOrEqualTo(String value) {
            addCriterion("attr3 <=", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3Like(String value) {
            addCriterion("attr3 like", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotLike(String value) {
            addCriterion("attr3 not like", value, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3In(List<String> values) {
            addCriterion("attr3 in", values, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotIn(List<String> values) {
            addCriterion("attr3 not in", values, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3Between(String value1, String value2) {
            addCriterion("attr3 between", value1, value2, "attr3");
            return (Criteria) this;
        }

        public Criteria andAttr3NotBetween(String value1, String value2) {
            addCriterion("attr3 not between", value1, value2, "attr3");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}